Skip to content

Feature/expose tun stats - #3421

Open
sugata100 wants to merge 2 commits into
passteque:masterfrom
sugata100:feature/expose-tun-stats
Open

Feature/expose tun stats#3421
sugata100 wants to merge 2 commits into
passteque:masterfrom
sugata100:feature/expose-tun-stats

Conversation

@sugata100

@sugata100 sugata100 commented Aug 1, 2026

Copy link
Copy Markdown

Description

Issue

Assertions

  • I am aware that any changes to settings should be reflected in the wiki

…stats

Implements feature request passteque#3419 to allow clients to query bandwidth
usage through the VPN tunnel for visualization and monitoring.

Uses the default tun0 interface statistics from sysfs.
…3419

- GET /v1/vpn/stats returns interface name, rx_bytes and tx_bytes
- Resolves the correct interface from current VPN settings
  (OpenVPN → OpenVPN.Interface default tun0,
   WireGuard/AmneziaWG → Wireguard.Interface default wg0)
- Falls back to the alternate common name if the configured
  interface is not present
- Clients can poll the endpoint to compute bandwidth rates

Closes passteque#3419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant